/**
 * 用户相关类型定义
 */

/**
 * 用户信息
 */
export interface User {
  id: string | number;
  username: string;
  nickname?: string;
  avatar?: string;
  email?: string;
  phone?: string;
  gender?: 0 | 1 | 2; // 0: 未知, 1: 男, 2: 女
  role?: string | string[];
  permissions?: string[];
  department?: string;
  position?: string;
  status?: number; // 0: 禁用, 1: 启用
  createTime?: string;
  updateTime?: string;
}

/**
 * 登录参数
 */
export interface LoginParams {
  username: string;
  password: string;
  remember?: boolean;
  captcha?: string;
}

/**
 * 登录响应
 */
export interface LoginResult {
  token: string;
  user: User;
}

/**
 * 修改密码参数
 */
export interface ChangePasswordParams {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
} 